/**
 * @author Austin Andrews (Templarian)
 * @authorurl http://templarian.com
 * @contributors A.J. Cates (Ajcates),
 *               Austin Andrews (Templarian)
 * @framework DD Framework
 * @licence New BSD License
 * @licenceurl http://ddframework.googlecode.com/svn/trunk/license.txt
 * @overview Handles the logging for projects
 */
/**
 * @namespace dd.log
*/
dd.log.extend({
    /**
     * @param
     *  wether the logger is on or off.
    */
    enabled: true,
    init: function()
    {
        //alert("foo");
        //@todo write the code that magicly figures out what logging functions to use.
    },
    /**
     * This is the main method of echoing data to a console.
     * @namespace dd.log
     * @function
     *  Logs a value
     *  @param item {int} The item you want to log.
     *  @returns {object} The item you origanlly passed.
     *  "Log Function"[javascript]@@
     *  dd.log("Hello World!");
     *  @@
    */
    func:function(item)
    {
        if(dd.log.enabled)
        {
            if(typeof(console) != "undefined")
                console.log(item);
        }
        return item;
    }
});